package view.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import view.MainFrame;

/**
 * This class gives functionality to the accept button
 * in the Controller Configuration Menu.
 * 
 * @author Stephanie
 *
 */
public class AcceptListener implements ActionListener {

	private MainFrame mainFrame;
	
	public AcceptListener( MainFrame mainFrame ) {
		this.mainFrame = mainFrame;
	}
	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO add setting controller configuration functionality
		mainFrame.changeActivePanel("MAIN_MENU");		
	}

}
